package cn.wolfcode.luowowo.community.query;

import cn.wolfcode.luowowo.common.query.QueryObject;

public class QuestionQuery extends QueryObject {

    private Long destId = -1L;

    private int state =-1;//状态

    private int orderType = 1;


    public String getOrderBy(){
        if(orderType==1){
            return "q.createTime desc";
        }else {
            return "q.thumbsupnum desc";
        }

    }
}
